API Documentation
StructToString.h
1 // StructToString.h
3 //
5 
6 namespace nkWinUi
7 {
12  {
13  public :
14 
15  // Components
22  static const char* getStringFromComponentType (COMPONENT_TYPE type) ;
29  static COMPONENT_TYPE getComponentTypeFromString (const std::string_view& name) ;
30 
31  // Layouts
38  static const char* getStringFromLayoutType (LAYOUT_TYPE type) ;
45  static LAYOUT_TYPE getLayoutTypeFromString (const std::string_view& name) ;
46 
47  // Relative position
54  static const char* getStringFromRelativePosition (RELATIVE_POSITION position) ;
61  static RELATIVE_POSITION getRelativePositionFromString (const std::string_view& name) ;
62  } ;
63 }
nkWinUi::StructToString::getRelativePositionFromString
static RELATIVE_POSITION getRelativePositionFromString(const std::string_view &name)
nkWinUi::LAYOUT_TYPE
LAYOUT_TYPE
Defines the type of layout available.
Definition: LayoutType.h:12
nkWinUi::StructToString::getStringFromComponentType
static const char * getStringFromComponentType(COMPONENT_TYPE type)
nkWinUi::StructToString::getComponentTypeFromString
static COMPONENT_TYPE getComponentTypeFromString(const std::string_view &name)
nkWinUi::StructToString::getLayoutTypeFromString
static LAYOUT_TYPE getLayoutTypeFromString(const std::string_view &name)
nkWinUi::StructToString::getStringFromLayoutType
static const char * getStringFromLayoutType(LAYOUT_TYPE type)
nkWinUi::COMPONENT_TYPE
COMPONENT_TYPE
Available component types.
Definition: ComponentType.h:12
nkWinUi::StructToString
Offers utilities to convert from structures or enums to strings, and vice versa.
Definition: StructToString.h:12
nkWinUi::StructToString::getStringFromRelativePosition
static const char * getStringFromRelativePosition(RELATIVE_POSITION position)
nkWinUi
Encompasses all API of component NilkinsWinUi.
Definition: Button.h:7
nkWinUi::RELATIVE_POSITION
RELATIVE_POSITION
Represents different positions, compared to an anchor.
Definition: RelativeLayout.h:12